package com.itheima;

public class Demo02 {
    public static void main(String[] args) {
        int num1 = 10;
        int res1 = num1++;
        System.out.println("变量num1的值："+num1);
        System.out.println("变量res1的值："+res1);

        int num2 = 10;
        int res2 = ++num2;
        System.out.println("变量num2:"+num2);
        System.out.println("变量res2:"+res2);
    }
}
